/*
package com.yupi.springbootinit.schedule;

import com.atguigu.edustatistics.service.StatisticsDailyService;
import com.atguigu.edustatistics.utils.DateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

*/
/**
 * @author 25169
 *//*

@Component
public class ScheduleTask {
    private static final Logger logger = LoggerFactory.getLogger(ScheduleTask.class);


    @Autowired
    private StatisticsDailyService statisticsDailyService;

    */
/**
     * 每天凌晨一点
     *//*

    @Scheduled(cron = "0 0 1 * * ?")
    public void task1(){
        logger.info("task1执行了");
        statisticsDailyService.registerCount(DateUtil.formatDate(DateUtil.addDays(new Date(), -1)));
    }
}
*/
